package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class MainActivity21 extends AppCompatActivity {
    Button button21;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.d("crq","2:oncreat");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main21);
        button21=findViewById(R.id.button21);
        Intent intent=new Intent(this, MainActivity2.class);
        button21.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(intent);
            }
        });
    }

    @Override
    protected void onStart() {
        Log.d("crq","2:onstart");
        super.onStart();
    }

    @Override
    protected void onStop() {
        Log.d("crq","2:onstop");
        super.onStop();
    }

    @Override
    protected void onRestart() {
        Log.d("crq","2:onrestart");
        super.onRestart();
    }

    @Override
    protected void onResume() {
        Log.d("crq","2:onresume");
        super.onResume();
    }

    @Override
    protected void onDestroy() {
        Log.d("crq","2:ondestory");
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        Log.d("crq","2:onpause");
        super.onPause();
    }
}